	<!--  CONTENT SECTION BEGINS HERE-->
						
		<center>
		
		<h2>Q-Shifts for <?php echo $this->currentDay; ?></h2>
		
		<!--TABLE FOR LATER USE-->	
	   <div class="table"> <img src="../images/bg-th-left.gif" width="8" height="7" alt="" class="left" /> 
							<img src="../images/bg-th-right.gif" width="7" height="7" alt="" class="right" />
		
		<table class="listing" cellpadding="0" cellspacing="0">

			<?php
			$currentShift= '';
			
			//print_r($this->qShiftDatya);exit;
			$i=0;
			foreach($this->qShiftData as $row):?>
				
			<?php 
				if($row[1]!=$currentShift): 
				  if($i!=0):?>
					</table>
					</div>
				<?php
				  endif; ?>
				
			   <div class="table"> <img src="../images/bg-th-left.gif" width="8" height="7" alt="" class="left" /> 
					<img src="../images/bg-th-right.gif" width="7" height="7" alt="" class="right" />
				<table class="listing" cellpadding="0" cellspacing="0">
					<tr>
						<th class="first" width="25px"><?php echo $row[1];?></th>
						<th class="last"  width="175px"><?php echo $row[2];?></th>
					</tr>
				
				<?php 
					$currentShift=$row[1];		
				endif; ?>
				
				<?php
								
				$trClassEnabled= '';
				
				if(($i % 2)==0)
					$trClassEnabled = 'class="bg"';
				else	
					$trClassEnabled = 'class="bg2"';
				echo "<tr ".$trClassEnabled.">\n";
					echo "<td class='first style2' colspan='2'>".$row[0]."</td>\n";			  
				echo "</tr>\n";
				$i++;
			endforeach;
			?>

        </table>
		
      </div>		  
	  
	<!-- YOUR CONTENT SECTION ENDS HERE-->

